// 文件位置: src/main/java/com/pharmacy/InventoryManage/entity/Inventory.java
package com.pharmacy.InventoryManage.entity;

import com.pharmacy.MedicineManage.entity.Medicine;

public class Inventory {
    private Integer id;
    private Integer medicineId;
    private Integer quantity;
    private Integer warningThreshold;
    private Medicine medicine; // 关联药品信息

    // 构造方法
    public Inventory() {}

    public Inventory(Integer medicineId, Integer quantity, Integer warningThreshold) {
        this.medicineId = medicineId;
        this.quantity = quantity;
        this.warningThreshold = warningThreshold;
    }

    // Getter和Setter方法
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public Integer getMedicineId() { return medicineId; }
    public void setMedicineId(Integer medicineId) { this.medicineId = medicineId; }

    public Integer getQuantity() { return quantity; }
    public void setQuantity(Integer quantity) { this.quantity = quantity; }

    public Integer getWarningThreshold() { return warningThreshold; }
    public void setWarningThreshold(Integer warningThreshold) { this.warningThreshold = warningThreshold; }

    public Medicine getMedicine() { return medicine; }
    public void setMedicine(Medicine medicine) { this.medicine = medicine; }
}